#pragma once

#include "Structures.h"
#include "Enum.h"

class Clickable
{
protected:
	ClickableType type;

	//Need two XY variables to ensure the mouse is within the top left and bottom right
	XY topLeft, bottomRight;

	//This function is protected because only clickable objects will use this function
	void setSize(XY, XY);

public:
	Clickable(){type = INVALID;}
	bool mouseOver(XY);
	ClickableType getType()	{return type;}
	virtual void Update(MouseInfo) = 0;
};